package com.weipu.common.facade.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class CouponError implements Parcelable {

	private String errorCode;
	private String shortMessgae;
	private String longMessage;

	
	
	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getShortMessgae() {
		return shortMessgae;
	}

	public void setShortMessgae(String shortMessgae) {
		this.shortMessgae = shortMessgae;
	}

	public String getLongMessage() {
		return longMessage;
	}

	public void setLongMessage(String longMessage) {
		this.longMessage = longMessage;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel parcel, int arg1) {
		parcel.writeString(errorCode);
		parcel.writeString(shortMessgae);
		parcel.writeString(longMessage);

	}

	public static final Parcelable.Creator<CouponError> CREATOR = new Creator<CouponError>() {

		@Override
		public CouponError[] newArray(int size) {
			// TODO Auto-generated method stub
			return new CouponError[size];
		}

		@Override
		public CouponError createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new CouponError(source);
		}
	};
	
	public CouponError() {
		
	}

	@SuppressWarnings("unchecked")
	public CouponError(Parcel source) {
		errorCode = source.readString();
		shortMessgae = source.readString();
		longMessage = source.readString();
	}
}
